<?php ?>
<div>
    <h2>Impresion de Ortacion Nº<?php echo $this->credito->getId(); ?></h2>
    <a href="<?php echo $this->baseUrl() . "/usuarios/credito/imprimirotorgacion/credito_id/" . $this->credito->getId() ;?>" class="btn btn-inverse">Descargar Recibo </a>
    <a href="#" onclick="imprimir('<?php echo $this->baseUrl() . "/usuarios/credito/impresionotorgacion/lpt1/1/credito_id/" . $this->credito->getId(); ?>')" class="btn btn-inverse">Imprimir Recibo</a>
</div>
<script type="text/javascript">
    function imprimir(url) {
        mywindow = window.open(url, "impresion", "location=1,status=1,scrollbars=1,  width=300,height=300");
        mywindow.moveTo(100,100);
    }    
</script>